<!--{eval $_TPL['titles'] = array('猜猜下辈子你会变成啥？发送到微博');}-->
<!--{template app/app_header_tpl}-->

<script type="text/javascript" language="javascript" charset="utf-8">
window.onload = theText;
function theText(){
	var texte=document.getElementById("texteare2").value.replace(/[^\x00-\xff]/g, "**");
	if(texte.length>=280){
		document.getElementById("texteare3").innerHTML="已超出&nbsp;<strong id=\"fontL\">0</strong>&nbsp;字";
		document.getElementById("fontL").style.color="#F00";
		document.getElementById("fontL").innerHTML = parseInt(((texte.length - 280)/2)+1);
	}else{
		document.getElementById("texteare3").innerHTML="你还可以输入&nbsp;<strong id=\"fontL\">140</strong>&nbsp;字";
		document.getElementById("fontL").innerHTML = parseInt((280-texte.length)/2);
	}
}

function checkform(){
	var texte=document.getElementById("texteare2").value.replace(/[^\x00-\xff]/g, "**");
	if(texte.length>=280){
		alert('字数超过140字');
		return false;
	}else if(texte.length == 0){
		alert('分享的信息为空');
		return false;
	}else{
		return true;
	}
}
</script>
    <div class="left">
		<div class="title"><a href="<!--{eval echo base_url();}-->" onClick="_gaq.push(['_trackEvent', 'sinapp1', 'click', 'top2', 1]);" target="_blank">第6街区</a></div>
		<div class="gamebg">
				<form action="<!--{eval echo base_url();}-->sina_app/guesswillbecomewhat/towb/{$username}" method="post" accept-charset="utf-8" onsubmit="return checkform();">
				<div class="game_title">
					猜猜你下辈子会变成啥？
					<a href="<!--{eval echo base_url();}-->sina_app/guesswillbecomewhat/index/">返回第一页</a>
				</div>

				<div class="shar">
					<p>
						<!--{if isset($user)}-->
							Hi {$user[name]}
						<!--{else}-->
							快来试试吧
						<!--{/if}-->
					</p>
					<p>	<input id="testName" name="testname" class="testName" onfocus="if(this.value=='请输入你的名字'){this.value='';} this.style.color='#FF0000'" value="{$username}" onblur="if(this.value==''){ this.style.color='#FF0000';this.value='请输入你的名字'}" type="text">
					</p>
			
					<p>
				  		<!--{if $gamepic}-->
							<img src="{$gamepic}" id="gamepic"/>
						<!--{else}-->
							<img src="<!--{eval echo base_url();}-->resources/images/app/gwbcw/bg.png" id="gamepic"/>
						<!--{/if}-->
					</p>
				</div>
				<div class="shar">
					<font class="texteare3" id="texteare3">你还可以输入&nbsp;<strong id="fontL">140</strong>&nbsp;字</font><br/>
					<textarea id="texteare2" onkeyup="theText()" name="wbmessage" class="weibobox">{$wbmessage}</textarea><br/>
					<input type="checkbox" name="fllow" id="check1" class="check1" onclick="_gaq.push(['_trackEvent', 'sinapp1', 'click', 'follow', 1]);">
					<font class="check2">关注第六街区官方微博</font>
					<input type="submit" name="release" value="立即发布" onclick="_gaq.push(['_trackEvent', 'sinapp1', 'click', 'sendwb', 1]);"/>
				</div>
			</form>
		</div>
		<div class="text"><a href="<!--{eval echo base_url();}-->" onClick="_gaq.push(['_trackEvent', 'sinapp1', 'click', 'bottom2', 1]);" target="_blank">第6街区 国内最大品牌折扣资讯站！ZARA，Dior 限时3折抢购！</a></div>
    </div>

    <div class="right">
		<!--{template app/app_right_tpl}-->
    </div>
</div>
<!--{template app/app_footer_tpl}-->